﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../common/taglibs.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<META http-equiv=Content-Type content="text/html; charset=gb2312">
		<LINK href="${ctx}/css/admin.css" type="text/css" rel="stylesheet">
		<script type="text/javascript" src="${ctx}/js/System/RoleManager.js"></script>
		<script type="text/javascript">
		var rolepow=0;//权限值
		function menuonload(){
			var role;
			role=<%=session.getAttribute("role")%>; 
			if(role==1){
				rolepow=4;
			}
			if(role==2||role==5){
				rolepow=1;
				document.getElementById("Transferdiv").style.color="gray"
				document.getElementById("Traindiv").style.color="gray"
				document.getElementById("Systemdiv").style.color="gray"
			}
			if(role==3||role==6){
				rolepow=2;
				document.getElementById("Dossierdiv").style.color="gray"
				document.getElementById("Traindiv").style.color="gray"
				document.getElementById("Systemdiv").style.color="gray"
			}
			if(role==4||role==7){
				rolepow=3;
				document.getElementById("Transferdiv").style.color="gray"
				document.getElementById("Dossierdiv").style.color="gray"
				document.getElementById("Systemdiv").style.color="gray"
			}
		}
	function expand(el) {
		if(rolepow==4||rolepow==el){
		childObj = document.getElementById("child" + el);
		if (childObj.style.display == 'none') {
			childObj.style.display = 'block';
		} else {
			childObj.style.display = 'none';
		}}else{
		if(rolepow==2){
		if(el==5){
			childObj = document.getElementById("child" + el);
		if (childObj.style.display == 'none') {
			childObj.style.display = 'block';
		} else {
			childObj.style.display = 'none';
		}}
		}}
		return;
	}
	function expandper(el) {
		if(rolepow==4||rolepow==el){
		childObj = document.getElementById("child" + el);
		childObj5 = document.getElementById("child5");
		if (childObj.style.display == 'none') {
			childObj5.style.display = 'none';
			childObj.style.display = 'block';
		} else {
			childObj5.style.display = 'none';
			childObj.style.display = 'none';
		}}
		return;
	}
    </script>
	</HEAD>
	<BODY onload="menuonload()">
		<TABLE height="100%" cellSpacing=0 cellPadding=0 width=170
			background=${ctx}/images/menu_bg.jpg border=0>
			<TR>
				<TD vAlign=top align=middle>
					<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>

						<TR>
							<TD height=10></TD>
						</TR>
					</TABLE>
					<TABLE cellSpacing=0 cellPadding=0 width=150 border=0>

						<TR height=22>
							<TD style="PADDING-LEFT: 30px" background=${ctx}/images/menu_bt.jpg>
								<A id="Dossierdiv" class=menuParent onclick=expand(1) href="javascript:void(0);" >人员档案管理</A>
							</TD>
						</TR>
						<TR height=4>
							<TD></TD>
						</TR>
					</TABLE>
					<TABLE id=child1 style="DISPLAY: none" cellSpacing=0 cellPadding=0
						width=150 border=0>
						<TR height=20>
							<TD align=middle width=30>
								<IMG height=9 src="${ctx}/images/menu_icon.gif" width=9>
							</TD>
							<TD>
								<A class=menuChild href="${ctx}/GetAllEmp" target=main >基本信息</A>
							</TD>
						</TR>
						<TR height=20>
							<TD align=middle width=30>
								<IMG height=9 src="${ctx}/images/menu_icon.gif" width=9>
							</TD>
							<TD>
								<A class=menuChild href="${ctx}/GetDossierServlet" target=main>员工档案</A>
							</TD>
						</TR>
						<TR height=20>
							<TD align=middle width=30>
								<IMG height=9 src="${ctx}/images/menu_icon.gif" width=9>
							</TD>
							<TD>
								<A class=menuChild href="${ctx}/GetResumeServlet" target=main>员工履历</A>
							</TD>
						</TR>
						<TR height=20>
							<TD align=middle width=30>
								<IMG height=9 src="${ctx}/images/menu_icon.gif" width=9>
							</TD>
							<TD>
								<A class=menuChild href="${ctx}/GetContractServlet" target=main>员工合同</A>
							</TD>
						</TR>
						<TR height=20>
							<TD align=middle width=30>
								<IMG height=9 src="${ctx}/images/menu_icon.gif" width=9>
							</TD>
							<TD>
								<A class=menuChild href="${ctx}/GetRewAndPunServlet" target=main>奖惩管理</A>
							</TD>
						</TR>
						<TR height=4>
							<TD colSpan=2></TD>
						</TR>
					</TABLE>
					<TABLE cellSpacing=0 cellPadding=0 width=150 border=0>
						<TR height=22>
							<TD style="PADDING-LEFT: 30px" background=${ctx}/images/menu_bt.jpg>
								<A id="Transferdiv" class=menuParent onclick=expandper(2) href="javascript:void(0);">人事调配管理</A>
							</TD>
						</TR>
						<TR height=4>
							<TD></TD>
						</TR>
					</TABLE>
					<TABLE id=child2 style="DISPLAY: none" cellSpacing=0 cellPadding=0
						width=150 border=0>
						<TR height=20>
							<TD align=middle width=30>
								<IMG height=9 src="${ctx}/images/menu_icon.gif" width=9>
							</TD>
							<TD>
								<A class=menuChild  href="${ctx}/TransferServlet" target=main>人事调配查询</A>
							</TD>
						</TR>
						<TR height=20>
							<TD align=middle width=30>
								<IMG height=9 src="${ctx}/images/menu_icon.gif" width=9>
							</TD>
							<TD>
								<A class=menuChild onclick=expand(5) href="javascript:void(0);" target=main>人事变动</A>
							</TD>
						</TR>
						<TR height=4>
							<TD colSpan=2></TD>
						</TR>
					</TABLE>
					
					<TABLE id=child5 style="DISPLAY: none;PADDING-LEFT: 30px" cellSpacing=0 cellPadding=0
						width=150 border=0>
						<TR height=20>
							<TD align=middle width=30>
								<IMG height=9 src="${ctx}/images/menu_icon.gif" width=9>
							</TD>
							<TD>
								<A class=menuChild href="../Meg_TransferServlet" target=main>人事变动管理</A>
							</TD>
						</TR>
						<TR height=20>
							<TD align=middle width=30>
								<IMG height=9 src="${ctx}/images/menu_icon.gif" width=9>
							</TD>
							<TD>
								<A class=menuChild href="${ctx}/Dossier/Emp.jsp" target=main>新进员工</A>
							</TD>
						</TR>
						<TR height=20>
							<TD align=middle width=30>
								<IMG height=9 src="${ctx}/images/menu_icon.gif" width=9>
							</TD>
							<TD>
								<A class=menuChild href="${ctx}/serchLeave" target=main>离职员工</A>
							</TD>
						</TR>
						<TR height=4>
							<TD colSpan=2></TD>
						</TR>
					</TABLE>
					<TABLE cellSpacing=0 cellPadding=0 width=150 border=0>
						<TR height=22>
							<TD style="PADDING-LEFT: 30px" background=${ctx}/images/menu_bt.jpg>
								<A id="Traindiv" class=menuParent onclick=expand(3) href="javascript:void(0);">教育培训管理</A>
							</TD>
						</TR>
						<TR height=4>
							<TD></TD>
						</TR>
					</TABLE>
					<TABLE id=child3 style="DISPLAY: none" cellSpacing=0 cellPadding=0
						width=150 border=0>
						<TR height=20>
							<TD align=middle width=30>
								<IMG height=9 src="${ctx}/images/menu_icon.gif" width=9>
							</TD>
							<TD>
								<A class=menuChild href="${ctx}/GetTrainType" target=main>培训类别维护</A>
							</TD>
						</TR>
						<TR height=20>
							<TD align=middle width=30>
								<IMG height=9 src="${ctx}/images/menu_icon.gif" width=9>
							</TD>
							<TD>
								<A class=menuChild href="${ctx}/FindTeacherServlet" target=main>培训讲师维护</A>
							</TD>
						</TR>
						<TR height=20>
							<TD align=middle width=30>
								<IMG height=9 src="${ctx}/images/menu_icon.gif" width=9>
							</TD>
							<TD>
								<A class=menuChild href="${ctx}/FindCourseServlet" target=main>培训课程维护</A>
							</TD>
						</TR>
						<TR height=20>
							<TD align=middle width=30>
								<IMG height=9 src="${ctx}/images/menu_icon.gif" width=9>
							</TD>
							<TD>
								<A class=menuChild href="${ctx}/FindTrainServlet" target=main>培训项目维护</A>
							</TD>
						</TR>
						<TR height=20>
							<TD align=middle width=30>
								<IMG height=9 src="${ctx}/images/menu_icon.gif" width=9>
							</TD>
							<TD>
								<A class=menuChild href="${ctx}/FindTrainScore" target=main>培训人员及成绩</A>
							</TD>
						</TR>
						<TR height=20>
							<TD align=middle width=30>
								<IMG height=9 src="${ctx}/images/menu_icon.gif" width=9>
							</TD>
							<TD>
								<A class=menuChild href="${ctx}/FindCertificateServlet" target=main>员工证书记录</A>
							</TD>
						</TR>
					
						<TR height=4>
							<TD colSpan=2></TD>
						</TR>
					</TABLE>
					<TABLE cellSpacing=0 cellPadding=0 width=150 border=0>
						<TR height=22>
							<TD style="PADDING-LEFT: 30px" background=${ctx}/images/menu_bt.jpg>
								<A id="Systemdiv" class=menuParent onclick=expand(4) href="javascript:void(0);">系统管理</A>
							</TD>
						</TR>
						<TR height=4>
							<TD></TD>
						</TR>
					</TABLE>
					<TABLE id=child4 style="DISPLAY: none" cellSpacing=0 cellPadding=0
						width=150 border=0>
						<TR height=20>
							<TD align=middle width=30>
								<IMG height=9 src="${ctx}/images/menu_icon.gif" width=9>
							</TD>
							<TD>
								<A class=menuChild href="${ctx}/DeptManagerServlet" target=main>机构信息维护</A>
							</TD>
						</TR>
						<TR height=20>
							<TD align=middle width=30>
								<IMG height=9 src="${ctx}/images/menu_icon.gif" width=9>
							</TD>
							<TD>
								<A class=menuChild href="${ctx}/DeptDutyManagerServlet" target=main>机构职务维护</A>
							</TD>
						</TR>
						<TR height=20>
							<TD align=middle width=30>
								<IMG height=9 src="${ctx}/images/menu_icon.gif" width=9>
							</TD>
							<TD>
								<A class=menuChild href="${ctx}/UserManagerServlet" target=main>用户管理</A>
							</TD>
						</TR>
					</TABLE>
					
					
				</TD>
				<TD width=1 bgColor=#d1e6f7></TD>
			</TR>
		</TABLE>
	</BODY>
</HTML>
